//
//  ViewController.swift
//  search
//
//  Created by 许博 on 2017/5/10.
//  Copyright © 2017年 mechat. All rights reserved.
//

import UIKit

class ViewController: MQBaseViewController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBAction func click(_ sender: Any) {
        let searchVC = MQSearchDisplayController()
//        searchVC.dataList = listViewModel.leadList
        searchVC.showInViewController(controller: self)
//        let nav = MQTopBar(rootViewController: searchVC)
        let nav = UINavigationController(rootViewController: searchVC)
        view.addSubview(nav.view)
        self.addChildViewController(nav)
    }


}

